<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>a</title>
	<script src="../lib/jquery-1.11.3.min.js"></script>
</head>
<body>
	<!-- <div id="qwe">返回事件referrer</div> -->
	<div class="goback">返回上一页</div>
	<div class="asd">点击跳转b页面</div>
	<ul class="test_ul">
		<li><a href="b.html">asd</a></li>
	</ul>
	<ul class="test_ul">
		<li><a href="c.html">asd</a></li>
	</ul>
	<ul class="test_ul">
		<li><a href="d.html">asd</a></li>
	</ul>
	<ul class="test_ul">
		<li><a href="e.html"></a></li>
	</ul>
	
	
	<script>
		$(function() {
			$('.asd').on('click',function() {
				history.replaceState('11111111','title',location);
				window.location='b.html?a=北京';
			})
			$('.goback').on('click',function() {
				history.go(-1);
				// location='http://www.baidu.com';
			})
			window.onpostate=function() {
				alert(234)
			}

			function renderA() {
				var $a=$('.test_ul li a');
				console.log($a);
				$.each($a, function(index, val) {
					console.log(val.href);
					val.href+='?test=$';
				});
			}
			renderA();
		})
	</script>
</body>
</html>